package com.xihuanjun.healthcode.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * (ChangeRecord)表实体类
 *
 * @author makejava
 * @since 2022-10-25 11:51:08
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@ToString
@TableName("change_record")
public class ChangeRecord extends Model<ChangeRecord> {

    @TableId
    private Long id;
    
    private String name;
    
    private Integer cardType;
    
    private String idCard;
    
    private String phone;
    
    private Integer changeType;
    
    private String address;
    //人员分类
    private Integer personType;
    //来源地
    private String fromArea;
    
    private String remark;
    
    private Date startTime;
    
    private Date endTime;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    
    private Long updateUser;
    //系统备注
    private String sysRemark;
    //状态：1待处理，2已处理
    private Integer status;

    @Version
    private Integer version;

    private Integer deleted;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public ChangeRecord(Long id) {
        this.id = id;
    }
}

